package com.example.store;

import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.web.client.RestClient;

public class ChromaRestClient {

//    @Bean
//    public RestClient.Builder builder() {
//        return RestClient.builder().requestFactory(new SimpleClientHttpRequestFactory());
//    }
//
//
//    @Bean
//    public ChromaApi chromaApi(RestClient.Builder restClientBuilder) {
//        String chromaUrl = "http://localhost:8000";
//        ChromaApi chromaApi = new ChromaApi(chromaUrl, restClientBuilder);
//        return chromaApi;
//    }
//
//    @Bean
//    public VectorStore chromaVectorStore(EmbeddingModel embeddingModel, ChromaApi chromaApi) {
//        return ChromaVectorStore.builder(chromaApi, embeddingModel)
//                .collectionName("TestCollection")
//                .initializeSchema(true)
//                .build();
//    }
}
